#include "VulkanWindowsPlatform.h"

namespace Alice
{
    void VulkanWindowsPlatform::CreateSurface(void* inWindowHandle, VkInstance inInstance, VkSurfaceKHR* inOutSurface)
    {
        VkWin32SurfaceCreateInfoKHR surfaceCreateInfo={};
        surfaceCreateInfo.sType=VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR;
        surfaceCreateInfo.hinstance = GetModuleHandle(nullptr);
        surfaceCreateInfo.hwnd = (HWND)inWindowHandle;
        vkCreateWin32SurfaceKHR(inInstance, &surfaceCreateInfo, nullptr, inOutSurface);
    }
}